﻿namespace SimHash
{
    #region

    using System;

    using SimHashBusiness.Analysers;
    using SimHashBusiness.Interfaces;

    #endregion

    internal class Program
    {
        #region Methods

        private static void Main()
        {
            const string HayStack = "厦门信托.普尔一号证券投资集合资金信托计划";
            const string Needle = "厦门普尔投资管理有限责任公司";

            IAnalyser analyser = new SimHashAnalyser();
            var likeness = analyser.GetLikenessValue(Needle, HayStack);

            Console.Clear();
            Console.WriteLine("Likeness: {0}%", likeness * 100);
            Console.ReadKey();
        }

        #endregion
    }
}